<form action="{:request()->url()}" autocomplete="off" class="layui-form layui-card" data-auto="true" method="post">
    <div class="layui-card-body padding-left-40">
        <script>
            layui.form.render();
        </script>

        <div class="layui-form-item relative block">
            <span class="help-label label-required-prev"><b>权限标签</b>Auth Name</span>
            <div class="layui-textarea help-checks">
                {foreach $rule as $mark}{if isset($vo.rule) && is_array($vo.rule) && in_array($mark.id, $vo.rule)}
                <input checked name="rule[]" title="{$mark.name}" type="checkbox" value="{$mark.id}">
                {else}
                <input name="rule[]" title="{$mark.name}" type="checkbox" value="{$mark.id}">
                {/if}{/foreach}
            </div>
        </div>
    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗？" type='button'>取消编辑</button>
    </div>
</form>